import { TJshortcuts } from '@/utils/config'
import i18n from '@/utils/i18n'
export const formItems = [
  {
    filed: 'userInfo',
    type: 'input',
    label: i18n.t('message.yhxx'),
    placeholder: i18n.t('message.hy3')
  },
  {
    filed: 'acName',
    type: 'input',
    label: i18n.t('message.hdname')
  },
  {
    filed: 'status',
    type: 'select',
    label: i18n.t('message.hxzt'),
    options: [{
      label: i18n.t('message.dhx'),
      value: '0'
    }, {
      label: i18n.t('message.yhx'),
      value: '1'
    }, {
      label: i18n.t('message.yqx'),
      value: '2'
    }]
  },
  {
    filed: 'times',
    type: 'daterange',
    label: i18n.t('message.bmsj'),
    pickerOptions: {
      shortcuts: TJshortcuts,
      disabledDate(time) {
        var curDate = new Date(new Date().toLocaleDateString()).getTime()
        var preDate = new Date(curDate + 24 * 60 * 60 * 1000 - 1)
        return time.getTime() > preDate
      }
    }
  }
]
export const queryFormConfig = {
  formItems,
  online: true
}
